package com.aier.admin.service;

import java.util.List;
import java.util.Map;

import com.aier.admin.entity.AdminParenting;



public interface IAdminParentingService {

    /**
     * 查询育儿信息
     * @return
     */
    Map<String, Object> searchParenting(int page, int page_size, int sortable);
    
    /**
     * 创建育儿内容
     * @param days
     * @param content
     * @param filename
     * @return
     */
    int insertParenting(Long days, String content,String filename);
    
    /**
     * 根据spid查看育儿信息
     * @param spid
     * @return
     */
    AdminParenting searchPatentingInfo(Long spid);
    
    /**
     * 修改育儿信息
     * @param spid
     * @param days
     * @param content
     * @param filename
     * @return
     */
    int updateParenting(Long spid, Long days, String content, String filename);
    
    /**
     * 根据days获取育儿信息
     * @param days
     * @return
     */
    AdminParenting searchPatentingByDays(Long days);
    
    /**
     * 查询收藏夹中的育儿信息
     * @param uid
     * @param mid
     * @return
     */
    List<AdminParenting> searchPatentingFavorite(Long uid,long mid);
    
}
